// var express = require('express');
import express from 'express'
import check from '../middleWare/check'
import Admin from '../controller/admin/admin'
var router = express.Router();
// router.post('/login', Admin.adminLogin);
router.post('/adminList', Admin.adminList);
router.post('/loginout', Admin.loginout);
/* GET users listing. */
// router.post('/',Admin.login);
router.post('/login',Admin.login);
router.post('/autoLogin',Admin.autoLogin);
router.get('/getList',Admin.getList);
router.post('/del',check.checkEdit,Admin.del);
router.post('/findOne',Admin.getOne);
router.post('/update',Admin.update);
router.post('/test',Admin.test);
// router.get('/:data/count',Admin.adminCount)
router.get('/allAdmin',Admin.allAdmin)
router.get('/deleteAdmin',Admin.deleteAdmin)
router.post('/adminExit',Admin.adminExit)
router.get('/:date/count',Admin.adminCount);
router.get('/allAdminCount',Admin.allAdminCount);
export default router;
